# 加解密

import DID_interface

data=[ { "type": "text",
           "content": "你好，Bob！" ,
           "timestamp": "2025-07-10T10:30:00"}]
meg="hello"

did="did:p2p_did_chat:Yk6hiAdlTA"

cpu_id="178BFBFF00A40F52"
disk_id="0000_0000_0000_0001_00A0_7522_3425_48DE"
product_id="00342-30729-63458-BBOEM"

encrypt=DID_interface.encrypt(cpu_id,disk_id,product_id,meg)

print(meg)
print(encrypt)

decrypt=DID_interface.decrypt(cpu_id,disk_id,product_id,encrypt)
print(decrypt)

